package com.lh.java.basic.clone;

public class CloneMain {
	public static void main(String[] a) {

		CloneB b1 = new CloneB();

		b1.aInt = 11;

		System.out.println("before clone,b1.aInt = " + b1.aInt);

		System.out.println("before clone,b1.unCA = " + b1.unCA);

		CloneB b2 = (CloneB) b1.clone();

		b2.aInt = 22;

		b2.unCA.doubleValue();

		System.out.println("=================================");

		System.out.println("after clone,b1.aInt = " + b1.aInt);

		System.out.println("after clone,b1.unCA = " + b1.unCA);

		System.out.println("=================================");

		System.out.println("after clone,b2.aInt = " + b2.aInt);

		System.out.println("after clone,b2.unCA = " + b2.unCA);

	}
}
